<!--
*
*  INSPINIA - Responsive Admin Theme
*  version 2.7
*
-->

<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title><?=$system['sys_title']?> | <?=$title;?></title>
    <?php $this->load->view('template/css');?>
    <link rel="stylesheet" href="<?=base_url("assets/css/my.css")?>">
    <link rel="stylesheet" href="<?=base_url("assets/css/plugins/iCheck/custom.css")?>">
</head>

<body class="font16">
<?php $this->load->view('template/header');?>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>用户反馈</h5>
            </div>
            <div class="ibox-content">
                <div class="row m-t-lg">
                    <div class="col-sm-12">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>联系方式</th>
                                <th>反馈内容</th>
                                <th>用户</th>
                                <th>反馈时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?foreach($feedback as $o){?>
                                <tr>
                                    <td><?=$o["fd_contact"]?></td>
                                    <td><?=$o["fd_content"]?></td>
                                    <td><?=$o["fd_openid"]?></td>
                                    <td><?=date('Y-m-d H:i:s',$o["fd_time"])?></td>
                                </tr>
                            <?}?>
                            </tbody>
                        </table>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>

<?php $this->load->view('template/foot');?>
<?php $this->load->view('template/scrip');?>
<!-- Jquery Validate -->
<script src="<?=base_url("assets/js/Validform_v5.3.2_min.js")?>"></script>
<script src="<?=base_url("assets/js/dialog.js")?>"></script>
<script src="<?=base_url("assets/js/jquery.form.min.js")?>"></script>
<script src="<?=base_url("assets/js/plugins/iCheck/icheck.min.js")?>"></script>
    <script>
        $(document).ready(function(){
            $('#signupForm').Validform({
                tiptype:3,
                beforeSubmit:function(data){
                    accretion(data,SCOPE.url_form);
                    return false;
                }
            });
        })
        $('.attr-edit').on('click',function(){
            var id = $(this).attr('attr-id');
            var f = $('form');
            $.get(SCOPE.url_ajax,{'id':id},function(msg){
                $('#modal-form').modal('show');
                f.find('#username').val(msg.adm_username).removeAttr('ajaxurl').removeAttr('name').attr('disabled','disabled');
                f.find("input[name='adm_realname']").val(msg.adm_realname);
                f.find("input[name='adm_id']").val(msg.adm_id);
            },'json')
        })
        $('#modal-form').on('hidden.bs.modal',function(){
            history.go(0);
            $('#signupForm').resetForm();
        })
    </script>
</body>
</html>
